﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="VesselTypeView.aspx.cs" Inherits="VesselTypeView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" PostBackUrl="~/vesseltypeedit.aspx?m=liVesselType" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="VesselTypeGirdView" CssClass="skineedgrid" runat="server" DataSourceID="VesselTypeDS" AutoGenerateColumns="false"
        PageSize="10" AllowPaging="true"  AllowSorting="true"  Width="75%" DataKeyNames="RecordID">
        <Columns>
            <asp:BoundField DataField="RecordID" HeaderText="ID" Visible="False" />
            <asp:BoundField DataField="ID" HeaderText="VesselTypeID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title"  SortExpression="Name"/>
            <%--<asp:BoundField DataField="Code" HeaderText="კოდი" />--%>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="vesseltypehistory.aspx?id=<%#Eval("ID") %>&m=liVesselType">History</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>


    <asp:ObjectDataSource ID="VesselTypeDS" SortParameterName="sortBy" runat="server" SelectMethod="GetVesselTypes" TypeName="DAL.DBManagers.VesselTypesManager"></asp:ObjectDataSource>
</asp:Content>

